//
//  CircleToolBarView.h
//  Malena
//
//  Created by Wang Shuguang on 12-11-8.
//  Copyright (c) 2012年 Dawn. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum{
    CircleToolBarLeftTop,
    CircleToolBarRightTop,
    CircleToolBarLeftBottom,
    CircleToolBarRightBottom
} CircleToolBarPosition;

@protocol CircleToolBarViewDelegate;
@interface CircleToolBarView : UIView{
@private
    id delegate;
    BOOL isPlaying;
    CircleToolBarPosition position;
    UIButton *baseButton;
    float theta;
    NSMutableArray *coordinates;
    NSMutableArray *coordinatesNear;
    NSMutableArray *coordinatesFar;
    int count;
    BOOL showed;
    CGPoint basePoint;
}
@property (nonatomic,assign) id <CircleToolBarViewDelegate> delegate;
@property (nonatomic,assign) BOOL isPlaying;
@property (nonatomic,assign) CircleToolBarPosition position;
- (id)initWithFrame:(CGRect)frame iconArray:(NSArray *)toolIconArray position:(CircleToolBarPosition)pos;
- (void) expandItems;
- (void) closeItems;
@end

@protocol  CircleToolBarViewDelegate
@optional
- (void) didSelectedAtIndex:(NSInteger)index;
- (void) didClickOutside;
@end






